const Mock = require('mockjs')

module.exports = {
    'get /homelist'(req, res) {
        res.status(200).json(Mock.mock({
            'data': {
                'total_price|1000-10000': 0,
                'user_price|100-1000': 0,
                'shop_price|100-1000': 0,
                'total_profit|1000-10000': 0,
                'shop_ord_profit|100-1000': 0,
                'sucai_profit|100-1000': 0,
                'sucai_commission_profit|100-1000': 0,
                'shop_qy_profit|1000-10000': 0,
                'dsh_shop|100-1000': 0,
                'shop_num|100-1000': 0,
                'gx_shop_num|100-1000': 0,
                'ord_num|1000-10000': 0,
                'ord_price|1000-10000': 0,
                'sh_lv': '@float(1,10,1,1)',
                'yes_tk_lv': '@float(10,100,1,1)',
                'coupon_num|100-1000': 0,
                'coupon_price|100-1000': 0,
            },
            'msg': '获取成功',
            'status': 200
        }))
    }
}